package com.zhonghui.mes.service.impl;

import java.util.List;

import com.zhonghui.mes.domain.vo.MesMaterialInspectorVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhonghui.mes.mapper.MesMaterialInspectorMapper;
import com.zhonghui.mes.domain.MesMaterialInspector;
import com.zhonghui.mes.service.IMesMaterialInspectorService;

/**
 * 制造执行MES-质量管理-来料检验
Service业务层处理
 * 
 * @author zhonghui
 * @date 2024-04-18
 */
@Service
public class MesMaterialInspectorServiceImpl implements IMesMaterialInspectorService 
{
    @Autowired
    private MesMaterialInspectorMapper mesMaterialInspectorMapper;

    /**
     * 查询制造执行MES-质量管理-来料检验

     * 
     * @param id 制造执行MES-质量管理-来料检验
主键
     * @return 制造执行MES-质量管理-来料检验

     */
    @Override
    public MesMaterialInspectorVo selectMesMaterialInspectorById(Long id)
    {
        return mesMaterialInspectorMapper.selectMesMaterialInspectorById(id);
    }

    /**
     * 查询制造执行MES-质量管理-来料检验
列表
     * 
     * @param MesMaterialInspectorVo 制造执行MES-质量管理-来料检验

     * @return 制造执行MES-质量管理-来料检验

     */
    @Override
    public List<MesMaterialInspectorVo> selectMesMaterialInspectorList(MesMaterialInspectorVo mesMaterialInspector)
    {
        return mesMaterialInspectorMapper.selectMesMaterialInspectorList(mesMaterialInspector);
    }

    /**
     * 新增制造执行MES-质量管理-来料检验

     * 
     * @param mesMaterialInspector 制造执行MES-质量管理-来料检验

     * @return 结果
     */
    @Override
    public int insertMesMaterialInspector(MesMaterialInspector mesMaterialInspector)
    {
        return mesMaterialInspectorMapper.insertMesMaterialInspector(mesMaterialInspector);
    }

    /**
     * 修改制造执行MES-质量管理-来料检验

     * 
     * @param mesMaterialInspector 制造执行MES-质量管理-来料检验

     * @return 结果
     */
    @Override
    public int updateMesMaterialInspector(MesMaterialInspector mesMaterialInspector)
    {
        return mesMaterialInspectorMapper.updateMesMaterialInspector(mesMaterialInspector);
    }

    /**
     * 批量删除制造执行MES-质量管理-来料检验

     * 
     * @param ids 需要删除的制造执行MES-质量管理-来料检验
主键
     * @return 结果
     */
    @Override
    public int deleteMesMaterialInspectorByIds(Long[] ids)
    {
        return mesMaterialInspectorMapper.deleteMesMaterialInspectorByIds(ids);
    }

    /**
     * 删除制造执行MES-质量管理-来料检验
信息
     * 
     * @param id 制造执行MES-质量管理-来料检验
主键
     * @return 结果
     */
    @Override
    public int deleteMesMaterialInspectorById(Long id)
    {
        return mesMaterialInspectorMapper.deleteMesMaterialInspectorById(id);
    }
}
